package com.systop.ltbook.attachfile.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.systop.core.model.BaseModel;

@Entity
@Table(name = "attach_file")
@SuppressWarnings("serial")
public class AttachFile extends BaseModel {
	
	/** 主键 */
	private Integer id;
	
	/** 文件名 */
	private String fileName;
	
	/** 文件路径 */
	private String filePath;
	
	/** 创建时间 */
	private Date createTime;
	
	/** 扩展名 */
	private String ext;
	
	/** 文件类型 */
	private String fileType;

	/** 说明 */
	private String note;
	
	/** 创建人 */
	private String creatre;
	
	@Id
	@GeneratedValue(generator = "hibseq")
	@GenericGenerator(name = "hibseq", strategy = "hilo")
	@Column(name = "ID", nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getCreatre() {
		return creatre;
	}

	public void setCreatre(String creatre) {
		this.creatre = creatre;
	}
	
	
}
